package com.platform.client;


//import com.platform.client.hystrix.AuthServiceHystrix;
import com.platform.client.hystrix.FeignConfig;
import com.platform.entity.JWT;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * Created by platform on 2018/6/28.
 */

@FeignClient(value = "uaa-service", configuration = FeignConfig.class)
public interface AuthServiceClient {
    @RequestMapping(method = RequestMethod.POST,value = "/oauth/token")
//    @PostMapping(value = "/oauth/token")
    JWT getToken(@RequestHeader(value = "Authorization") String authorization, @RequestParam("grant_type") String type,
                 @RequestParam("username") String username, @RequestParam("password") String password);

}



